package com.ruoyi.system.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
@RequestMapping("/system/test")
public class MyTestController {

    private String prefix = "system/test";

    @RequestMapping("/test1")
    public String test1(Model m)
    {
        m.addAttribute("username","张三");
        return prefix+"/test1";
    }
}

// system/test/test1